package beans;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "agent")
public class Agent {

	private int id;
	private String name;
	private String password;
	private String province;
	private String city;
	private String linkman;
	private long phone;
	private long idcard;
	private String addr;
	private String comment;
	private int deduction;
	private String intro;// 代理商简介
	private String logo;// 代理商图标
	private String feedbackURL;// 反馈地址
	private String userSmsTemplate;// 用户短信模板
	private String courierSmsTemplate;// 快递员短信模板
	private String partnerID;// 合作者ID
	private String partnerName;// 合作者名称
	private BigDecimal balance;// 代理商余额
	private int recharge;// 代理商充值方式
	private String partner;
	private String agentKey;
	private String sellerEmail;
	private String showUrl;
	private String exterInvokeIp;
	private String accountPwd;
	private int parentID;
	private String smsplatform;// 短信平台字符串
	private int upload;// 0不上传安杰1上传安杰

	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "agent_id", unique = true, nullable = false)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "agent_name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "agent_pwd")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "agent_province")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "agent_city")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "agent_linkman")
	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	@Column(name = "agent_phone")
	public long getPhone() {
		return phone;
	}

	public void setPhone(long phone) {
		this.phone = phone;
	}

	@Column(name = "agent_idcard")
	public long getIdcard() {
		return idcard;
	}

	public void setIdcard(long idcard) {
		this.idcard = idcard;
	}

	@Column(name = "agent_addr")
	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	@Column(name = "agent_comment")
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Column(name = "agent_deduction")
	public int getDeduction() {
		return deduction;
	}

	public void setDeduction(int deduction) {
		this.deduction = deduction;
	}

	@Column(name = "agent_intro")
	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	@Column(name = "agent_logo")
	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	@Column(name = "agent_feedback_url")
	public String getFeedbackURL() {
		return feedbackURL;
	}

	public void setFeedbackURL(String feedbackURL) {
		this.feedbackURL = feedbackURL;
	}

	@Column(name = "agent_user_sms_template")
	public String getUserSmsTemplate() {
		return userSmsTemplate;
	}

	public void setUserSmsTemplate(String userSmsTemplate) {
		this.userSmsTemplate = userSmsTemplate;
	}

	@Column(name = "agent_courier_sms_template")
	public String getCourierSmsTemplate() {
		return courierSmsTemplate;
	}

	public void setCourierSmsTemplate(String courierSmsTemplate) {
		this.courierSmsTemplate = courierSmsTemplate;
	}

	@Column(name = "agent_partner_id")
	public String getPartnerID() {
		return partnerID;
	}

	public void setPartnerID(String partnerID) {
		this.partnerID = partnerID;
	}

	@Column(name = "agent_partner_name")
	public String getPartnerName() {
		return partnerName;
	}

	public void setPartnerName(String partnerName) {
		this.partnerName = partnerName;
	}

	@Column(name = "agent_balance")
	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	@Column(name = "agent_recharge")
	public int getRecharge() {
		return recharge;
	}

	public void setRecharge(int recharge) {
		this.recharge = recharge;
	}

	@Column(name = "partner")
	public String getPartner() {
		return partner;
	}

	public void setPartner(String partner) {
		this.partner = partner;
	}

	@Column(name = "agent_key")
	public String getAgentKey() {
		return agentKey;
	}

	public void setAgentKey(String agentKey) {
		this.agentKey = agentKey;
	}

	@Column(name = "seller_email")
	public String getSellerEmail() {
		return sellerEmail;
	}

	public void setSellerEmail(String sellerEmail) {
		this.sellerEmail = sellerEmail;
	}

	@Column(name = "show_url")
	public String getShowUrl() {
		return showUrl;
	}

	public void setShowUrl(String showUrl) {
		this.showUrl = showUrl;
	}

	@Column(name = "exter_invoke_ip")
	public String getExterInvokeIp() {
		return exterInvokeIp;
	}

	public void setExterInvokeIp(String exterInvokeIp) {
		this.exterInvokeIp = exterInvokeIp;
	}

	@Column(name = "account_pwd")
	public String getAccountPwd() {
		return accountPwd;
	}

	public void setAccountPwd(String accountPwd) {
		this.accountPwd = accountPwd;
	}

	@Column(name = "agent_parentID")
	public int getParentID() {
		return parentID;
	}

	public void setParentID(int parentID) {
		this.parentID = parentID;
	}

	@Column(name = "agent_smsplatform")
	public String getSmsplatform() {
		return smsplatform;
	}

	public void setSmsplatform(String smsplatform) {
		this.smsplatform = smsplatform;
	}

	@Column(name = "agent_uploadAnjie")
	public int getUpload() {
		return upload;
	}

	public void setUpload(int upload) {
		this.upload = upload;
	}
	
	

}
